#include <stdio.h>

int main()
{
    int num = 0;
    scanf("%d", &num);
    //判断是否为奇数
    if (num % 2 == 1)
        printf("奇数\n");
    else
        printf("不是奇数\n");

    return 0;
}

int main()
{
    //1. 循环先产生1~100的数字
    //2. 判断产生的数字是否为奇数
    //3. 是奇数打印
    int i = 1;
    while (i <= 100)
    {
        if (i % 2 == 1)
        {
            printf("%d ", i);
        }
        i++;
    }
    return 0;
}


int main()
{
    int day = 0;
    scanf("%d", &day);
    if (1 == day)
    {
        printf("星期1\n");
    }
    else if (2 == day)
    {
        printf("星期2\n");
    }
    //...
    return 0;


int main()
{
    int day = 0;
    scanf("%d", &day);
    int n = 2;
    switch (day)
    {
    default:
        printf("选择错误\n");
        break;
    case 1:
        printf("星期1\n");
        break;
    case 2:
        printf("星期2\n");
        break;
    case 3:
        printf("星期3\n");
        break;
    case 4:
        printf("星期4\n");
        break;
    case 5:
        printf("星期5\n");
        break;
    case 6:
        printf("星期6\n");
        break;
    case 7:
    printf("星期天\n");
        break;
    }
    return 0;
}


int main()
{
    int day = 0;
    scanf("%d", &day);
    int n = 2;
    switch (day)
    {
    case 1:
    case 2:
    case 3:
    case 4:
    case 5:
        printf("工作日\n");
        break;
    case 6:
    case 7:
        printf("休息日\n");
        break;
    default:
        printf("选择错误\n");
        break;
    }
    return 0;
}

#include <stdio.h>
    int main()
{
    int n = 1;
    int m = 2;
    switch (n)
    {
        case 1: m++;
        case 2: n++;
        case 3:
            switch (n)
            {//switch允许嵌套使用
                case 1: n++;
                case 2:
                    m++; n++;
                break;
            }
        case 4:
            m++;
        break;
        default:
            break;
    }
    printf("m = %d, n = %d\n", m, n);
    return 0;
}



